package com.seecen.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName order
 */
@TableName(value ="`order`")

@Data
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer orderId;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderCreateTime;

    private Integer productId;

    private Integer quantity;

    @Version
    private Integer version;

    private Integer isDeleted;
}
